package Dao;

import Entity.Timetable;
import java.util.List;

public interface TimetableDaoImpl {
    public List<Timetable> findAllTimetable();//返回所有timetable表
    public Timetable findById(int id);      //根据id返回timetable表
    public List<Timetable> findByRoomid(String roomid);     // 根据房间号返回timetable表
    public List<Timetable> findByTime(int week, int day, int section);      //根据时间返回timetable表
    public List<Timetable> findByTimeA(String roomid, int week, int day, int section);
        // 根据房间id，时间返回timetable表

    public boolean addTimetable(Timetable timetable);//添加
    public boolean updateTimetable(Timetable timetable);//更新
    public boolean deleteTimetable(Timetable timetable);//删除
}
